Skip to content

Crowdsec integration: update health check command from capi to lapi#707

Merged
SunsetDrifter merged 1 commit intonetbirdio:mainfrom
blotus:crowdsec-healthcheck-command
Apr 20, 2026
Merged

Crowdsec integration: update health check command from capi to lapi#707
SunsetDrifter merged 1 commit intonetbirdio:mainfrom
blotus:crowdsec-healthcheck-command

Conversation

@blotus
Copy link
Copy Markdown
Contributor

@blotus blotus commented Apr 20, 2026

Hello,

Crowdsec maintainer here !

I just saw that you've added an integration with crowdsec in your latest release, thanks !

After a quick look at your documentation, I spotted an issue in the example compose file: you are using cscli capi status as the health check for the container, but this command is not intended to be used like this.

cscli capi status will attempt to login to the central API (hosted by us), and this tells nothing about the state of the local instance, but simply that the instance has valid CAPI credentials.

The command that you actually want to use is cscli lapi status: this will query the local API running in the container.

The Pangolin team made the same mistake a few months back, and we had to put in place more drastic rate limiting on CAPI for instances querying too often (see this issue for more context), so a check every 10s will definitely lead to very harsh rate limiting.

This PR simply replaces capi with lapi in the health check command, and in the command used to verify if the container is up before adding a new bouncer.

@SunsetDrifter SunsetDrifter merged commit 3d30f33 into netbirdio:main Apr 20, 2026
1 check passed
@SunsetDrifter
Copy link
Copy Markdown
Contributor

@blotus Thank you very much!!!

@lixmal
Copy link
Copy Markdown
Contributor

lixmal commented Apr 20, 2026

Thanks. This one fell through the cracks. I already corrected it in the code

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants